package com.flower.practice.controller;

import com.flower.practice.entity.Result;
import com.flower.practice.service.PracticeSetService;
import com.flower.practice.vo.SpecialPracticeVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author lavender
 * @version 1.0
 * @date 2024-08-02 18:35
 */
@RestController
@RequestMapping("/practice/set")
@Slf4j
public class PracticeSetController {


    @Resource
    private PracticeSetService practiceSetService;

    @RequestMapping("/getSpecialPracticeContent")
    public Result<List<SpecialPracticeVO>> getSpecialPracticeContent() {
        List<SpecialPracticeVO> result = practiceSetService.getSpecialPracticeContent();


        return Result.ok(result);
    }
}
